<!--
 * @Descripttion: 
 * @version: 
 * @Author: Ansel
 * @Date: 2020-03-05 13:40:45
 * @LastEditors: Ansel
 * @LastEditTime: 2020-05-17 12:27:46
 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [[1,2,3],[1,4,5],2,[1,5]];
        console.log(arr.toString());
        var set = new Set(arr.toString().split(","));
        var arr1 = [...set];
        console.log(arr.toString());
        console.log(arr1.sort((a,b) => a - b));
    </script>
</body>
</html>